]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: Use G_VARIANT_TYPE macro for checking
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 Oct 2013 14:52:45 +0000 (10:52 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 Oct 2013 14:52:45 +0000 (10:52 -0400)
src/shell-global.c

index 95787a5d8ceb84fb1d7d7f6a3b3bcad10baaa1ec..e711dff09a9cccb5e533f598b37ae1f3e6050f10 100644 (file)
@@ -1819,7 +1819,7 @@ shell_global_get_runtime_state (ShellGlobal  *global,
   else
     {
       GBytes *bytes = g_mapped_file_get_bytes (mfile);
-      res = g_variant_new_from_bytes ((GVariantType*)property_type, bytes, TRUE);
+      res = g_variant_new_from_bytes (G_VARIANT_TYPE (property_type), bytes, TRUE);
       g_bytes_unref (bytes);
       g_mapped_file_unref (mfile);
     }